<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <script src="../js/jq-1.12.4.js"></script>
    <script src="../js/bootstrap.js"></script>
    <style>
        .navbar-inverse .navbar-form {
            margin-right: 15px;
        }

        .navbar {
            padding: 0;
            margin: 0;
        }

        @media screen and (max-width:768px) {
            form {
                display: none;
            }

            .myul {
                position: absolute;
                top: 0;
                left: 50%;
                float: right;
            }

            .myul li {
                float: left;
            }
        }

        .myul {
            margin-right: 15px;
        }

        /* .nav>li>a {
            padding-right: 8px;
            padding-left: 8px;
            color: #9D9D9D;
        } */
    </style>
</head>

<body>
    <div id="app" class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <!-- 导航的头部 -->
            <div class="navbar-header">
                <!-- icons按钮组 -->
                <button class="navbar-toggle collaped" type="button" data-toggle="collapse"
                    data-target=".navbar-collapse">
                    <!-- 3个横杠 -->
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <!-- logo链接 -->
                <a href="#" class="navbar-brand hidden-sm" style="padding-top: 10px;">
                    <img src="../img/logo.png" alt="" width="90" />
                </a>
            </div>
            <!-- 导航的隐藏部分 -->
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="#">首页</a></li>
                    <li><a href="#">入门课</a></li>
                    <li><a href="#">岗位课</a></li>
                    <li><a href="#">技能库</a></li>
                    <li><a href="#">微社区</a></li>
                    <li><a href="#">学员<span style="margin-left:6px;" class=" label label-danger">new</span></a></a>
                    </li>
                </ul>
                <!-- 登录表单 -->
                <form class="navbar-form navbar-right ">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="请输入要搜索的内容">
                    </div>
                    <button type="submit" class="btn btn-success navbar-btn">搜索</button>
                </form>
                <!-- 注册按钮 -->
            </div>
            <ul class="nav navbar-nav navbar-right myul">
                <li><a href="">登录</a></li>
                <li><a href="">注册</a></li>
            </ul>
        </div>

</body>

</html>